<template>
	<view :class="themeName">
		<view class="boxes">
			<view>
				<view class="flex m-t-20">
					<text class="md muted">跟进状态：</text>
					<text class="md setcolor" v-if="msg.status == 1">待联系</text>
					<text class="md setcolor" v-else-if="msg.status == 2">跟进中</text>
					<text class="md setcolor" v-else-if="msg.status == 3">已成交</text>
					<text class="md setcolor" v-else-if="msg.status == 4">失败</text>
				</view>
				<view class="flex m-t-20">
					<text class="md muted">姓名：</text>
					<text class="md black">{{msg.name}}</text>
				</view>
				<view class="flex m-t-20">
					<text class="md muted">手机号：</text>
					<text class="md black">{{msg.phone}}</text>
				</view>
				<view class="flex2 m-t-20">
					<text class="md muted" style="white-space: nowrap;">安装地址：</text>
					<text class="md black">{{msg.address}}</text>
				</view>
				<view class="flex m-t-20">
					<text class="md muted">安装要求：</text>
					<text class="md black">{{msg.content}}</text>
				</view>
				<view class="flex m-t-20">
					<text class="md muted">下单时间：</text>
					<text class="md black">{{msg.create_time}}</text>
				</view>
				<view class="flex m-t-20">
					<text class="md muted">推荐人：</text>
					<text class="md black">{{msg.pname}}</text>
				</view>
				<view class="flex m-t-20">
					<text class="md muted">推荐人电话：</text>
					<text class="md black">{{msg.pphone}}</text>
				</view>
				<view class="flex m-t-20">
					<text class="md muted">更新时间：</text>
					<text class="md black">{{msg.update_time}}</text>
				</view>
				<view class="flex m-t-20">
					<text class="md muted">审核备注：</text>
					<text class="md black">{{msg.remark}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import { gtxqDetail } from '@/api/user.js';
	export default {
		data() {
			return {
				id:'',
				msg:{}
			}
		},
		async onLoad(options) {
			this.id = options.id;
			await this.getMsg();
		},
		methods: {
			getMsg(){
				gtxqDetail({id:this.id}).then(res => {
					this.msg = res;
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
.boxes{
	background-color: #fff;
	margin: 20rpx;
	padding: 20rpx;
	border-radius: 10rpx;
}
</style>
